<me:UIVAF x:Class="WPFExcelReport.TAFSVA09"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL"   
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"  
                    x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIVAF.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIVAF.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions> 
        <WrapPanel Grid.Row="0">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=色号管理:}}"></TextBlock>
                <Button  Grid.Column="1" Click="ManageCommand" Width="24" Height="20" HorizontalAlignment="Left" >
                    <Button.Background>
                        <ImageBrush  ImageSource="/ImagePackage;component/Images/Extend.png" />
                    </Button.Background>
                </Button>
            </Grid>
            <TextBlock Text="{Binding VAFFARBE}"/>
        </WrapPanel> 
        <DataGrid  Grid.Row="1" 
                   VerticalAlignment="Top"  
                   AutoGenerateColumns="False"
                   EnableRowVirtualization="False"
                   VerticalScrollBarVisibility="Auto"
                   HorizontalScrollBarVisibility="Auto"
                   HeadersVisibility="Column"     
                   IsReadOnly="True"
                   ItemsSource="{Binding Source={StaticResource ResourceKey=vwMaster}}"  
                   IsSynchronizedWithCurrentItem="True" 
                   x:Name="dlgMaster"  
                   RowDetailsVisibilityMode="Visible"  
                    >
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Path=VAFFARBE}" Header="{Binding Source={Localization:Translate Word=色号}}"  Width="40" />
                <DataGridTextColumn Binding="{Binding Path=VAFFFARBE}" Header="{Binding Source={Localization:Translate Word=生产色号}}"  Width="40" />
                <DataGridTextColumn Binding="{Binding Path=VAFBESCHICH, Converter={StaticResource gb2312}}" Header="{Binding Source={Localization:Translate Word=后整}}"  Width="40" />
                <DataGridTextColumn Visibility="Collapsed" Binding="{Binding Path=VAFBEZ, Converter={StaticResource gb2312}}" Header="{Binding Source={Localization:Translate Word=色名}}"  Width="60" />
                <DataGridTextColumn Visibility="Collapsed" Binding="{Binding Path=VAFDESS, Converter={StaticResource gb2312}}" Header="{Binding Source={Localization:Translate Word=印花}}"  Width="40" />
                <DataGridTextColumn Visibility="Collapsed" Binding="{Binding Path=VAFCOLORIT, Converter={StaticResource gb2312}}" Header="{Binding Source={Localization:Translate Word=配色}}"  Width="40" />
                <DataGridTextColumn Visibility="Collapsed" Binding="{Binding Path=VAFPGROE, Converter={StaticResource gb2312}}" Header="{Binding Source={Localization:Translate Word=尺码}}"  Width="40" />
             </DataGrid.Columns>
        </DataGrid  >
     </Grid>
</me:UIVAF>
